# -*- coding: utf-8 -*-
from flask import Flask

app = Flask( __name__ )
# 另外一种设置DEBUG模式的方式
app.config['DEBUG'] = True
@app.route( "/" )
def hello():
    return 'hello flask!'

if __name__ == "__main__":
    app.run( host = "0.0.0.0" )
    #app.run()